READ WORD
This command will read a word of data from the file and store it as an integer value in the variable specified.
READ WORD File Number, Variable
File Number
Integer
The file number
Variable
Integer
This command will read a word of data from the file and store it as an integer value in the variable specified. A word represents two bytes
This command does not return a value.
A word represents two bytes. The file specified by the file number must be open or the command will fail.
cls
open to read 1,"data.dat"
read word 1,a
close file 1
do
loop
end
FILE Commands Menu
Index